import request from 'utils/request'
// import qs from 'qs'
// 请求banner列表
const fetchBanners = (params = {}) => request.get('/conner/banner/list', { params })
// 获取商品分类
const fetchCates = (params = {}) => request.get('/conner/shop/goods/category/all', { params })
// 请求商品列表
const fetchItems = (params = {}) => request.post('/conner/shop/goods/list', params)
// 获取商品详情
const fetchDetail = (id) => request.get('/conner/shop/goods/detail', {
  params: {
    id
  }
})

export {
  fetchBanners,
  fetchCates,
  fetchItems,
  fetchDetail
}
